<%-- 
    Document   : Inventory detail
    Created on : 30/01/2011, 02:53:43 AM
    Author     : gerardino
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/Common/header.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd"><%

   Inventory i = (Inventory)request.getAttribute("i");
   String user = UserServiceFactory.getUserService().getCurrentUser().getNickname();
   
%>
<script type="text/javascript" src="/scripts/Inventory/view.js" ></script>
<script type="text/javascript">
    loadProducts(<%= i.getId().getId() %>);
</script>
    <a href="/Inventory">Inventarios</a> &Gt; <span class="iLabel<%= i.getId().getId() %>"><%= i.getName() %></span>
    <h1><span class="iLabel<%= i.getId().getId() %>"><%= i.getName() %></span></h1>
    <p><%= i.getOwner() %></p>
    <hr>
    <a href="#" onClick="loadProducts(<%= i.getId().getId() %>)">Productos</a> 
    | Reportes 
<%
    if (user.equals(i.getOwner())){
%>    
    | <a href="#" onClick="loadAdmin(<%= i.getId().getId() %>)">Administraci&oacute;n</a>
<%
   }
%>    
    <br>
    <div id="inventoryContent">
    </div>
